package github.leavesczy.reactivehttpsamples.util

import github.leavesczy.reactivehttpsamples.widget.view.BridgeSpinnerItem

object BridgeDataHelper {
    fun getBridgeTypeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("梁桥","1"))
        //lists.add(BridgeSpinnerItem.SpinnerData("拱桥","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("斜拉桥","3"))
        //lists.add(BridgeSpinnerItem.SpinnerData("悬索桥","4"))
       return lists;
    }

    fun getMainBeamTypeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("钢箱梁","钢箱梁"))
        lists.add(BridgeSpinnerItem.SpinnerData("钢桁梁","钢桁梁"))
        lists.add(BridgeSpinnerItem.SpinnerData("钢混组合梁","钢混组合梁"))
        lists.add(BridgeSpinnerItem.SpinnerData("混凝土梁","混凝土梁"))
        return lists;
    }

    fun getArchBridgeTypeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("上承式","上承式"))
        lists.add(BridgeSpinnerItem.SpinnerData("中承式","中承式"))
        lists.add(BridgeSpinnerItem.SpinnerData("下承式","下承式"))
        lists.add(BridgeSpinnerItem.SpinnerData("飞燕式","飞燕式"))
        return lists;
    }
    fun getSingleBeamInterfaceTypeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("空心板梁","1"))
        lists.add(BridgeSpinnerItem.SpinnerData("T梁","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("小箱梁","3"))
        return lists;
    }

    fun getArchSectionTypeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("钢筋混凝土","钢筋混凝土"))
        lists.add(BridgeSpinnerItem.SpinnerData("钢箱","钢箱"))
        lists.add(BridgeSpinnerItem.SpinnerData("钢管混凝土","钢管混凝土"))
        return lists;
    }

    fun getStiffeningGirderSectionTypeListByMaterialType(materialType:String?): MutableList<BridgeSpinnerItem.SpinnerData> {
        return when(materialType){
            "1"->{
                getStiffeningGirderSectionTypeListForHNT()
            }
            "2"->{
                getStiffeningGirderSectionTypeListForG()
            }
            "3"->{
                getStiffeningGirderSectionTypeListForHHS()
            }
            else->{
                getStiffeningGirderSectionTypeListForG()
            }
        }
    }
    //混凝土
    fun getStiffeningGirderSectionTypeListForHNT(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("板式","1"))
        lists.add(BridgeSpinnerItem.SpinnerData("边箱式","3"))
        lists.add(BridgeSpinnerItem.SpinnerData("整体箱式","5"))
        return lists;
    }
    //钢
    fun getStiffeningGirderSectionTypeListForG(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("边箱式","3"))
        lists.add(BridgeSpinnerItem.SpinnerData("分体箱式","4"))
        lists.add(BridgeSpinnerItem.SpinnerData("整体箱式","5"))
        lists.add(BridgeSpinnerItem.SpinnerData("桁架式","6"))
        return lists;
    }
    //混合式
    fun getStiffeningGirderSectionTypeListForHHS(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("多工字钢梁式","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("边箱式","3"))
        lists.add(BridgeSpinnerItem.SpinnerData("分体箱式","4"))
        lists.add(BridgeSpinnerItem.SpinnerData("整体箱式","5"))
        lists.add(BridgeSpinnerItem.SpinnerData("桁架式","6"))
        return lists;
    }
    fun getStiffeningGirderMaterialTypeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("混凝土","1"))
        lists.add(BridgeSpinnerItem.SpinnerData("钢","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("混合式","3"))

        return lists;
    }

    fun getMainMaterialTypeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("混凝土","1"))
        lists.add(BridgeSpinnerItem.SpinnerData("钢","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("组合梁","3"))

        return lists;
    }

    fun getMainTowerVerticalShapeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("1字式","1"))
        lists.add(BridgeSpinnerItem.SpinnerData("倒Y式","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("A字式","3"))
        return lists;
    }

    fun getMainTowerHorizontalShapeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("1字式","1"))
        lists.add(BridgeSpinnerItem.SpinnerData("倒Y式","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("A字式","3"))
        lists.add(BridgeSpinnerItem.SpinnerData("门式","4"))
        return lists;
    }

    fun getSampleTypeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("连续行车测试","0"))
        lists.add(BridgeSpinnerItem.SpinnerData("跨中停车测试","1"))
        return lists;
    }

    fun getGirderTypeList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("简支梁","1"))
        lists.add(BridgeSpinnerItem.SpinnerData("连续梁","2"))
        return lists;
    }

    fun getAuxiliaryPierNumberList(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("0","0"))
        lists.add(BridgeSpinnerItem.SpinnerData("1","1"))
        lists.add(BridgeSpinnerItem.SpinnerData("2","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("3","3"))
        lists.add(BridgeSpinnerItem.SpinnerData("4","4"))
        return lists;
    }

    fun getMainSpanNumberType1List(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("1","1"))
        lists.add(BridgeSpinnerItem.SpinnerData("2","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("3","3"))
        lists.add(BridgeSpinnerItem.SpinnerData("4","4"))
        lists.add(BridgeSpinnerItem.SpinnerData("5","5"))
        lists.add(BridgeSpinnerItem.SpinnerData("6","6"))
        lists.add(BridgeSpinnerItem.SpinnerData("7","7"))
        lists.add(BridgeSpinnerItem.SpinnerData("8","8"))
        lists.add(BridgeSpinnerItem.SpinnerData("9","9"))
        lists.add(BridgeSpinnerItem.SpinnerData("10","10"))
        return lists;
    }

    fun getMainSpanNumberType3List(): MutableList<BridgeSpinnerItem.SpinnerData> {
        val lists= mutableListOf<BridgeSpinnerItem.SpinnerData>()
        lists.add(BridgeSpinnerItem.SpinnerData("2","2"))
        lists.add(BridgeSpinnerItem.SpinnerData("3","3"))
        lists.add(BridgeSpinnerItem.SpinnerData("4","4"))
        lists.add(BridgeSpinnerItem.SpinnerData("5","5"))
        lists.add(BridgeSpinnerItem.SpinnerData("6","6"))
        lists.add(BridgeSpinnerItem.SpinnerData("7","7"))
        lists.add(BridgeSpinnerItem.SpinnerData("8","8"))
        lists.add(BridgeSpinnerItem.SpinnerData("9","9"))
        lists.add(BridgeSpinnerItem.SpinnerData("10","10"))
        return lists;
    }

}
